package com.hzhr.iot.device.convertor;

import com.hzhr.iot.device.convertor.custom.*;
import com.hzhr.iot.core.util.HzhrTypeUtil;
import com.hzhr.iot.core.util.HzhrJsonUtil;
import java.util.Map;
import com.hzhr.iot.device.model.iotDevice.IotDeviceModel;
import com.hzhr.iot.device.model.iotDevice.IotDevicePostModel;
import com.hzhr.iot.device.model.iotDevice.IotDevicePutModel;
import com.hzhr.iot.device.entity.IotDeviceEntity;
import com.hzhr.iot.device.entity.ext.IotDeviceEntityExt;
import com.hzhr.iot.device.entity.custom.IotDeviceEntityCustom;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.hzhr.iot.device.model.concentrator.ConcentratorModel;
import com.hzhr.iot.device.model.concentrator.ConcentratorGetModel;
import com.hzhr.iot.device.model.concentrator.ConcentratorPostModel;
import com.hzhr.iot.device.model.concentrator.ConcentratorPutModel;
import com.hzhr.iot.device.model.iotDevice.IotDeviceModel;
import com.hzhr.iot.device.model.iotDevice.IotDeviceGetModel;
import com.hzhr.iot.device.model.iotDevice.IotDevicePostModel;
import com.hzhr.iot.device.model.iotDevice.IotDevicePutModel;
import com.hzhr.iot.device.model.iotDevice_currentMessageId.IotDevice_CurrentMessageIdModel;
import com.hzhr.iot.device.model.iotDevice_currentMessageId.IotDevice_CurrentMessageIdGetModel;
import com.hzhr.iot.device.model.iotDevice_key.IotDevice_KeyModel;
import com.hzhr.iot.device.model.iotDevice_key.IotDevice_KeyGetModel;
import com.hzhr.iot.device.model.iotDevice_registInfo.IotDevice_RegistInfoModel;
import com.hzhr.iot.device.model.iotDevice_registInfo.IotDevice_RegistInfoGetModel;
import com.hzhr.iot.device.model.iotDevice_registInfo.IotDevice_RegistInfoPutModel;
import com.hzhr.iot.device.model.pressureMonitor1.PressureMonitor1Model;
import com.hzhr.iot.device.model.pressureMonitor1.PressureMonitor1GetModel;
import com.hzhr.iot.device.model.pressureMonitor_code.PressureMonitor_CodeModel;
import com.hzhr.iot.device.model.pressureMonitor_code.PressureMonitor_CodeGetModel;
import com.hzhr.iot.device.model.pressureMonitor_code.PressureMonitor_CodePutModel;
import com.hzhr.iot.device.model.pressureMonitor_deviceParam.PressureMonitor_DeviceParamModel;
import com.hzhr.iot.device.model.pressureMonitor_deviceParam.PressureMonitor_DeviceParamGetModel;
import com.hzhr.iot.device.model.pressureMonitor_deviceParam.PressureMonitor_DeviceParamPutModel;
import com.hzhr.iot.device.queryModel.custom.IotDeviceCustomQueryModel;

@Component
public class IotDeviceConvertor {
    @Autowired
    AlarmDataCustomConvertor alarmDataCustomConvertor;
    @Autowired
    CollectDataCustomConvertor collectDataCustomConvertor;
    @Autowired
    CollectDeviceCustomConvertor collectDeviceCustomConvertor;
    @Autowired
    CollectDeviceTypeCustomConvertor collectDeviceTypeCustomConvertor;
    @Autowired
    DeviceInfoCardCustomConvertor deviceInfoCardCustomConvertor;
    @Autowired
    DeviceMaintenanceCardCustomConvertor deviceMaintenanceCardCustomConvertor;
    @Autowired
    DeviceMaintenanceCardItemCustomConvertor deviceMaintenanceCardItemCustomConvertor;
    @Autowired
    ImplFactoryCustomConvertor implFactoryCustomConvertor;
    @Autowired
    ImplIotDeviceTypeCustomConvertor implIotDeviceTypeCustomConvertor;
    @Autowired
    ImplRecordCustomConvertor implRecordCustomConvertor;
    @Autowired
    IotDeviceTypeCustomConvertor iotDeviceTypeCustomConvertor;
    @Autowired
    OptionsCustomConvertor optionsCustomConvertor;
    @Autowired
    ProdFactoryCustomConvertor prodFactoryCustomConvertor;
    @Autowired
    RegulatorCollectDataCustomConvertor regulatorCollectDataCustomConvertor;
    @Autowired
    UserCompanyCustomConvertor userCompanyCustomConvertor;

    public IotDeviceEntity concentratorModel2entity(ConcentratorModel in) {
        //未转换字段: createUserId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid updateTime categoryCode companyId alarmMin iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setCreateTime(HzhrTypeUtil.long2date(in.getCreateTime()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public IotDeviceEntity concentratorModel2entity(ConcentratorModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid updateTime categoryCode companyId alarmMin iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setCreateTime(HzhrTypeUtil.long2date(in.getCreateTime()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public List<IotDeviceEntity> concentratorModelList2entityList(List<ConcentratorModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (ConcentratorModel item : in) {
            result.add(concentratorModel2entity(item));
        }
        return result;
    }
    public ConcentratorModel entity2concentratorModel(IotDeviceEntity in) {
        //未转换字段: deptName protocolDes companyName 
        if (in == null) return null;
        ConcentratorModel result = new ConcentratorModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setCreateTime(HzhrTypeUtil.date2long(in.getCreateTime()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public List<ConcentratorModel> entityList2concentratorModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<ConcentratorModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2concentratorModel(item));
        }
        return result;
    }
    public ConcentratorModel ext2concentratorModel(IotDeviceEntityExt in) {
        //未转换字段: deptName protocolDes companyName 
        if (in == null) return null;
        ConcentratorModel result = new ConcentratorModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setCreateTime(HzhrTypeUtil.date2long(in.getCreateTime()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public List<ConcentratorModel> extList2concentratorModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<ConcentratorModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2concentratorModel(item));
        }
        return result;
    }
    public ConcentratorModel custom2concentratorModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        ConcentratorModel result = ext2concentratorModel(in);

        return result;
    }
    public List<ConcentratorModel> customList2concentratorModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<ConcentratorModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2concentratorModel(item));
        }
        return result;
    }
    public ConcentratorGetModel customList2concentratorGetModel(List<IotDeviceEntityCustom> customList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<ConcentratorModel> modelList = customList2concentratorModelList(customList);
        if (modelList == null) {
            ConcentratorGetModel result = new ConcentratorGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = query.get("_show") != null ? query.get("_show").toString() : "one";
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;

        if (!_show_info) {
            for (ConcentratorModel model : modelList) {
                model.setCode(null);
                model.setDes(null);
                model.setCompanyId(null);
                model.setDeptId(null);
                model.setCompanyName(null);
                model.setDeptName(null);
                model.setCreateTime(null);
                model.setProtocolId(null);
                model.setProtocolDes(null);
            }
        }

        ConcentratorGetModel result = new ConcentratorGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public ConcentratorGetModel extList2concentratorGetModel(List<IotDeviceEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<ConcentratorModel> modelList = extList2concentratorModelList(extList);
        if (modelList == null) {
            ConcentratorGetModel result = new ConcentratorGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;

        if (!_show_info) {
            for (ConcentratorModel model : modelList) {
                model.setCode(null);
                model.setDes(null);
                model.setCompanyId(null);
                model.setDeptId(null);
                model.setCompanyName(null);
                model.setDeptName(null);
                model.setCreateTime(null);
                model.setProtocolId(null);
                model.setProtocolDes(null);
            }
        }

        ConcentratorGetModel result = new ConcentratorGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public ConcentratorGetModel entity2concentratorGetModel(IotDeviceEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDeviceEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2concentratorGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, IotDeviceEntityExt.class));
        return extList2concentratorGetModel(extList, total, changeCount, query);
     }
    public IotDeviceEntity concentratorPostModel2entity(ConcentratorPostModel in) {
        //未转换字段: createUserId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId id state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid updateTime categoryCode companyId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public IotDeviceEntity concentratorPostModel2entity(ConcentratorPostModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId id state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid updateTime categoryCode companyId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public List<IotDeviceEntity> concentratorPostModelList2entityList(List<ConcentratorPostModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (ConcentratorPostModel item : in) {
            result.add(concentratorPostModel2entity(item));
        }
        return result;
    }
    public ConcentratorPostModel entity2concentratorPostModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        ConcentratorPostModel result = new ConcentratorPostModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public List<ConcentratorPostModel> entityList2concentratorPostModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<ConcentratorPostModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2concentratorPostModel(item));
        }
        return result;
    }
    public ConcentratorPostModel ext2concentratorPostModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        ConcentratorPostModel result = new ConcentratorPostModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public List<ConcentratorPostModel> extList2concentratorPostModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<ConcentratorPostModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2concentratorPostModel(item));
        }
        return result;
    }
    public ConcentratorPostModel custom2concentratorPostModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        ConcentratorPostModel result = ext2concentratorPostModel(in);

        return result;
    }
    public List<ConcentratorPostModel> customList2concentratorPostModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<ConcentratorPostModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2concentratorPostModel(item));
        }
        return result;
    }
    public IotDeviceEntity concentratorPutModel2entity(ConcentratorPutModel in) {
        //未转换字段: createUserId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId id state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid updateTime categoryCode companyId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public IotDeviceEntity concentratorPutModel2entity(ConcentratorPutModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId id state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid updateTime categoryCode companyId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public List<IotDeviceEntity> concentratorPutModelList2entityList(List<ConcentratorPutModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (ConcentratorPutModel item : in) {
            result.add(concentratorPutModel2entity(item));
        }
        return result;
    }
    public ConcentratorPutModel entity2concentratorPutModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        ConcentratorPutModel result = new ConcentratorPutModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public List<ConcentratorPutModel> entityList2concentratorPutModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<ConcentratorPutModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2concentratorPutModel(item));
        }
        return result;
    }
    public ConcentratorPutModel ext2concentratorPutModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        ConcentratorPutModel result = new ConcentratorPutModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setProtocolId(HzhrTypeUtil.string2string(in.getProtocolId()));
        return result;
    }
    public List<ConcentratorPutModel> extList2concentratorPutModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<ConcentratorPutModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2concentratorPutModel(item));
        }
        return result;
    }
    public ConcentratorPutModel custom2concentratorPutModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        ConcentratorPutModel result = ext2concentratorPutModel(in);

        return result;
    }
    public List<ConcentratorPutModel> customList2concentratorPutModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<ConcentratorPutModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2concentratorPutModel(item));
        }
        return result;
    }
    public IotDeviceEntity iotDeviceModel2entity(IotDeviceModel in) {
        //未转换字段: createUserId protocolId address updateUserId isValid installTime state collectDeviceId saleUserId 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setBindStatus(HzhrTypeUtil.string2string(in.getBindStatus()));
        result.setSaleTime(HzhrTypeUtil.long2date(in.getSaleTime()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setFreezingDay(HzhrTypeUtil.string2string(in.getFreezingDay()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        result.setLongitude(HzhrTypeUtil.double2double(in.getLongitude()));
        result.setLatitude(HzhrTypeUtil.double2double(in.getLatitude()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        result.setCreateTime(HzhrTypeUtil.long2date(in.getCreateTime()));
        result.setUpdateTime(HzhrTypeUtil.long2date(in.getUpdateTime()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setDeviceTime(HzhrTypeUtil.long2date(in.getDeviceTime()));
        result.setHeartPeriod(HzhrTypeUtil.integer2integer(in.getHeartPeriod()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        result.setOutId(HzhrTypeUtil.string2string(in.getOutId()));
        return result;
    }
    public IotDeviceEntity iotDeviceModel2entity(IotDeviceModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId protocolId address updateUserId isValid installTime state collectDeviceId saleUserId 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setBindStatus(HzhrTypeUtil.string2string(in.getBindStatus()));
        result.setSaleTime(HzhrTypeUtil.long2date(in.getSaleTime()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setFreezingDay(HzhrTypeUtil.string2string(in.getFreezingDay()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        result.setLongitude(HzhrTypeUtil.double2double(in.getLongitude()));
        result.setLatitude(HzhrTypeUtil.double2double(in.getLatitude()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        result.setCreateTime(HzhrTypeUtil.long2date(in.getCreateTime()));
        result.setUpdateTime(HzhrTypeUtil.long2date(in.getUpdateTime()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setDeviceTime(HzhrTypeUtil.long2date(in.getDeviceTime()));
        result.setHeartPeriod(HzhrTypeUtil.integer2integer(in.getHeartPeriod()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        result.setOutId(HzhrTypeUtil.string2string(in.getOutId()));
        return result;
    }
    public List<IotDeviceEntity> iotDeviceModelList2entityList(List<IotDeviceModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (IotDeviceModel item : in) {
            result.add(iotDeviceModel2entity(item));
        }
        return result;
    }
    public IotDeviceModel entity2iotDeviceModel(IotDeviceEntity in) {
        //未转换字段: bindStatusDes companyName gasCompanyName reportPeriodDes companyShortName typeDes gasCompanyShortName simTypeDes exceptionReportPeriodDes 
        if (in == null) return null;
        IotDeviceModel result = new IotDeviceModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setOutId(HzhrTypeUtil.string2string(in.getOutId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setLongitude(HzhrTypeUtil.double2double(in.getLongitude()));
        result.setLatitude(HzhrTypeUtil.double2double(in.getLatitude()));
        result.setBindStatus(HzhrTypeUtil.string2string(in.getBindStatus()));
        result.setSaleTime(HzhrTypeUtil.date2long(in.getSaleTime()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setFreezingDay(HzhrTypeUtil.string2string(in.getFreezingDay()));
        result.setDeviceTime(HzhrTypeUtil.date2long(in.getDeviceTime()));
        result.setHeartPeriod(HzhrTypeUtil.integer2integer(in.getHeartPeriod()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        result.setCreateTime(HzhrTypeUtil.date2long(in.getCreateTime()));
        result.setUpdateTime(HzhrTypeUtil.date2long(in.getUpdateTime()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        return result;
    }
    public List<IotDeviceModel> entityList2iotDeviceModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<IotDeviceModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2iotDeviceModel(item));
        }
        return result;
    }
    public IotDeviceModel ext2iotDeviceModel(IotDeviceEntityExt in) {
        //未转换字段: bindStatusDes companyName gasCompanyName reportPeriodDes companyShortName typeDes gasCompanyShortName simTypeDes exceptionReportPeriodDes 
        if (in == null) return null;
        IotDeviceModel result = new IotDeviceModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setOutId(HzhrTypeUtil.string2string(in.getOutId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setLongitude(HzhrTypeUtil.double2double(in.getLongitude()));
        result.setLatitude(HzhrTypeUtil.double2double(in.getLatitude()));
        result.setBindStatus(HzhrTypeUtil.string2string(in.getBindStatus()));
        result.setSaleTime(HzhrTypeUtil.date2long(in.getSaleTime()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setFreezingDay(HzhrTypeUtil.string2string(in.getFreezingDay()));
        result.setDeviceTime(HzhrTypeUtil.date2long(in.getDeviceTime()));
        result.setHeartPeriod(HzhrTypeUtil.integer2integer(in.getHeartPeriod()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        result.setCreateTime(HzhrTypeUtil.date2long(in.getCreateTime()));
        result.setUpdateTime(HzhrTypeUtil.date2long(in.getUpdateTime()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        return result;
    }
    public List<IotDeviceModel> extList2iotDeviceModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<IotDeviceModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2iotDeviceModel(item));
        }
        return result;
    }
    public IotDeviceModel custom2iotDeviceModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        IotDeviceModel result = ext2iotDeviceModel(in);

        return result;
    }
    public List<IotDeviceModel> customList2iotDeviceModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<IotDeviceModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2iotDeviceModel(item));
        }
        return result;
    }
    public IotDeviceGetModel customList2iotDeviceGetModel(List<IotDeviceEntityCustom> customList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDeviceModel> modelList = customList2iotDeviceModelList(customList);
        if (modelList == null) {
            IotDeviceGetModel result = new IotDeviceGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = query.get("_show") != null ? query.get("_show").toString() : "one";
         Boolean _show_outId = query.get("_show_outId") != null ? Boolean.parseBoolean(query.get("_show_outId").toString()) : false;
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;
         Boolean _show_gasCompany = query.get("_show_gasCompany") != null ? Boolean.parseBoolean(query.get("_show_gasCompany").toString()) : false;
         Boolean _show_company = query.get("_show_company") != null ? Boolean.parseBoolean(query.get("_show_company").toString()) : false;

        if (!_show_outId) {
            for (IotDeviceModel model : modelList) {
                model.setOutId(null);
            }
        }
        if (!_show_info) {
            for (IotDeviceModel model : modelList) {
                model.setCode(null);
                model.setDes(null);
                model.setCategoryCode(null);
                model.setTypeId(null);
                model.setTypeDes(null);
                model.setCompanyId(null);
                model.setGasCompanyId(null);
                model.setDeptId(null);
                model.setSimNo(null);
                model.setSimTypeCode(null);
                model.setSimTypeDes(null);
                model.setIotPlatformCode(null);
                model.setIotPlatformImei(null);
                model.setIotPlatformDeviceId(null);
                model.setIotPlatformIp(null);
                model.setIotPlatformPort(null);
                model.setBindStatus(null);
                model.setBindStatusDes(null);
                model.setSaleTime(null);
                model.setReportTime(null);
                model.setReportPeriod(null);
                model.setFreezingDay(null);
                model.setReportPeriodDes(null);
                model.setExceptionReportPeriod(null);
                model.setExceptionReportPeriodDes(null);
                model.setAlarmMax(null);
                model.setAlarmMin(null);
                model.setReportFrequency(null);
                model.setExceptionReportFrequency(null);
                model.setCollectFrequency(null);
                model.setExceptionCollectFrequency(null);
                model.setRemark(null);
                model.setLongitude(null);
                model.setLatitude(null);
                model.setResourceCode(null);
                model.setCreateTime(null);
                model.setUpdateTime(null);
                model.setUpKey(null);
                model.setDownKey(null);
                model.setDeviceTime(null);
                model.setHeartPeriod(null);
                model.setCurrentMessageId(null);
            }
        }
        if (!_show_gasCompany) {
            for (IotDeviceModel model : modelList) {
                model.setGasCompanyName(null);
                model.setGasCompanyShortName(null);
            }
        }
        if (!_show_company) {
            for (IotDeviceModel model : modelList) {
                model.setCompanyName(null);
                model.setCompanyShortName(null);
            }
        }

        IotDeviceGetModel result = new IotDeviceGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public IotDeviceGetModel extList2iotDeviceGetModel(List<IotDeviceEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDeviceModel> modelList = extList2iotDeviceModelList(extList);
        if (modelList == null) {
            IotDeviceGetModel result = new IotDeviceGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));
         Boolean _show_outId = query.get("_show_outId") != null ? Boolean.parseBoolean(query.get("_show_outId").toString()) : false;
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;
         Boolean _show_gasCompany = query.get("_show_gasCompany") != null ? Boolean.parseBoolean(query.get("_show_gasCompany").toString()) : false;
         Boolean _show_company = query.get("_show_company") != null ? Boolean.parseBoolean(query.get("_show_company").toString()) : false;

        if (!_show_outId) {
            for (IotDeviceModel model : modelList) {
                model.setOutId(null);
            }
        }
        if (!_show_info) {
            for (IotDeviceModel model : modelList) {
                model.setCode(null);
                model.setDes(null);
                model.setCategoryCode(null);
                model.setTypeId(null);
                model.setTypeDes(null);
                model.setCompanyId(null);
                model.setGasCompanyId(null);
                model.setDeptId(null);
                model.setSimNo(null);
                model.setSimTypeCode(null);
                model.setSimTypeDes(null);
                model.setIotPlatformCode(null);
                model.setIotPlatformImei(null);
                model.setIotPlatformDeviceId(null);
                model.setIotPlatformIp(null);
                model.setIotPlatformPort(null);
                model.setBindStatus(null);
                model.setBindStatusDes(null);
                model.setSaleTime(null);
                model.setReportTime(null);
                model.setReportPeriod(null);
                model.setFreezingDay(null);
                model.setReportPeriodDes(null);
                model.setExceptionReportPeriod(null);
                model.setExceptionReportPeriodDes(null);
                model.setAlarmMax(null);
                model.setAlarmMin(null);
                model.setReportFrequency(null);
                model.setExceptionReportFrequency(null);
                model.setCollectFrequency(null);
                model.setExceptionCollectFrequency(null);
                model.setRemark(null);
                model.setLongitude(null);
                model.setLatitude(null);
                model.setResourceCode(null);
                model.setCreateTime(null);
                model.setUpdateTime(null);
                model.setUpKey(null);
                model.setDownKey(null);
                model.setDeviceTime(null);
                model.setHeartPeriod(null);
                model.setCurrentMessageId(null);
            }
        }
        if (!_show_gasCompany) {
            for (IotDeviceModel model : modelList) {
                model.setGasCompanyName(null);
                model.setGasCompanyShortName(null);
            }
        }
        if (!_show_company) {
            for (IotDeviceModel model : modelList) {
                model.setCompanyName(null);
                model.setCompanyShortName(null);
            }
        }

        IotDeviceGetModel result = new IotDeviceGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public IotDeviceGetModel entity2iotDeviceGetModel(IotDeviceEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDeviceEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2iotDeviceGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, IotDeviceEntityExt.class));
        return extList2iotDeviceGetModel(extList, total, changeCount, query);
     }
    public IotDeviceEntity iotDevicePostModel2entity(IotDevicePostModel in) {
        //未转换字段: createUserId downKey currentMessageId latitude installTime deviceTime collectDeviceId reportPeriod saleTime exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId id state bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid updateTime protocolId alarmMin createTime reportFrequency saleUserId reportTime 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        return result;
    }
    public IotDeviceEntity iotDevicePostModel2entity(IotDevicePostModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId downKey currentMessageId latitude installTime deviceTime collectDeviceId reportPeriod saleTime exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId id state bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid updateTime protocolId alarmMin createTime reportFrequency saleUserId reportTime 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        return result;
    }
    public List<IotDeviceEntity> iotDevicePostModelList2entityList(List<IotDevicePostModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (IotDevicePostModel item : in) {
            result.add(iotDevicePostModel2entity(item));
        }
        return result;
    }
    public IotDevicePostModel entity2iotDevicePostModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevicePostModel result = new IotDevicePostModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        return result;
    }
    public List<IotDevicePostModel> entityList2iotDevicePostModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<IotDevicePostModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2iotDevicePostModel(item));
        }
        return result;
    }
    public IotDevicePostModel ext2iotDevicePostModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevicePostModel result = new IotDevicePostModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        return result;
    }
    public List<IotDevicePostModel> extList2iotDevicePostModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<IotDevicePostModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2iotDevicePostModel(item));
        }
        return result;
    }
    public IotDevicePostModel custom2iotDevicePostModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        IotDevicePostModel result = ext2iotDevicePostModel(in);

        return result;
    }
    public List<IotDevicePostModel> customList2iotDevicePostModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<IotDevicePostModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2iotDevicePostModel(item));
        }
        return result;
    }
    public IotDeviceEntity iotDevicePutModel2entity(IotDevicePutModel in) {
        //未转换字段: createUserId address updateUserId isValid updateTime installTime collectDeviceId protocolId createTime outId id state saleUserId 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setBindStatus(HzhrTypeUtil.string2string(in.getBindStatus()));
        result.setSaleTime(HzhrTypeUtil.long2date(in.getSaleTime()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setFreezingDay(HzhrTypeUtil.string2string(in.getFreezingDay()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        result.setLongitude(HzhrTypeUtil.double2double(in.getLongitude()));
        result.setLatitude(HzhrTypeUtil.double2double(in.getLatitude()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        result.setDeviceTime(HzhrTypeUtil.long2date(in.getDeviceTime()));
        result.setHeartPeriod(HzhrTypeUtil.integer2integer(in.getHeartPeriod()));
        return result;
    }
    public IotDeviceEntity iotDevicePutModel2entity(IotDevicePutModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId address updateUserId isValid updateTime installTime collectDeviceId protocolId createTime outId id state saleUserId 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setBindStatus(HzhrTypeUtil.string2string(in.getBindStatus()));
        result.setSaleTime(HzhrTypeUtil.long2date(in.getSaleTime()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setFreezingDay(HzhrTypeUtil.string2string(in.getFreezingDay()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        result.setLongitude(HzhrTypeUtil.double2double(in.getLongitude()));
        result.setLatitude(HzhrTypeUtil.double2double(in.getLatitude()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        result.setDeviceTime(HzhrTypeUtil.long2date(in.getDeviceTime()));
        result.setHeartPeriod(HzhrTypeUtil.integer2integer(in.getHeartPeriod()));
        return result;
    }
    public List<IotDeviceEntity> iotDevicePutModelList2entityList(List<IotDevicePutModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (IotDevicePutModel item : in) {
            result.add(iotDevicePutModel2entity(item));
        }
        return result;
    }
    public IotDevicePutModel entity2iotDevicePutModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevicePutModel result = new IotDevicePutModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setLongitude(HzhrTypeUtil.double2double(in.getLongitude()));
        result.setLatitude(HzhrTypeUtil.double2double(in.getLatitude()));
        result.setBindStatus(HzhrTypeUtil.string2string(in.getBindStatus()));
        result.setSaleTime(HzhrTypeUtil.date2long(in.getSaleTime()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setFreezingDay(HzhrTypeUtil.string2string(in.getFreezingDay()));
        result.setDeviceTime(HzhrTypeUtil.date2long(in.getDeviceTime()));
        result.setHeartPeriod(HzhrTypeUtil.integer2integer(in.getHeartPeriod()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        return result;
    }
    public List<IotDevicePutModel> entityList2iotDevicePutModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<IotDevicePutModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2iotDevicePutModel(item));
        }
        return result;
    }
    public IotDevicePutModel ext2iotDevicePutModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevicePutModel result = new IotDevicePutModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setCategoryCode(HzhrTypeUtil.string2string(in.getCategoryCode()));
        result.setTypeId(HzhrTypeUtil.integer2integer(in.getTypeId()));
        result.setCompanyId(HzhrTypeUtil.integer2integer(in.getCompanyId()));
        result.setGasCompanyId(HzhrTypeUtil.integer2integer(in.getGasCompanyId()));
        result.setDeptId(HzhrTypeUtil.integer2integer(in.getDeptId()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setIotPlatformCode(HzhrTypeUtil.string2string(in.getIotPlatformCode()));
        result.setIotPlatformImei(HzhrTypeUtil.string2string(in.getIotPlatformImei()));
        result.setIotPlatformDeviceId(HzhrTypeUtil.string2string(in.getIotPlatformDeviceId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setLongitude(HzhrTypeUtil.double2double(in.getLongitude()));
        result.setLatitude(HzhrTypeUtil.double2double(in.getLatitude()));
        result.setBindStatus(HzhrTypeUtil.string2string(in.getBindStatus()));
        result.setSaleTime(HzhrTypeUtil.date2long(in.getSaleTime()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setFreezingDay(HzhrTypeUtil.string2string(in.getFreezingDay()));
        result.setDeviceTime(HzhrTypeUtil.date2long(in.getDeviceTime()));
        result.setHeartPeriod(HzhrTypeUtil.integer2integer(in.getHeartPeriod()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        result.setRemark(HzhrTypeUtil.string2string(in.getRemark()));
        result.setResourceCode(HzhrTypeUtil.string2string(in.getResourceCode()));
        return result;
    }
    public List<IotDevicePutModel> extList2iotDevicePutModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<IotDevicePutModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2iotDevicePutModel(item));
        }
        return result;
    }
    public IotDevicePutModel custom2iotDevicePutModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        IotDevicePutModel result = ext2iotDevicePutModel(in);

        return result;
    }
    public List<IotDevicePutModel> customList2iotDevicePutModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<IotDevicePutModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2iotDevicePutModel(item));
        }
        return result;
    }
    public IotDeviceEntity iotDevice_CurrentMessageIdModel2entity(IotDevice_CurrentMessageIdModel in) {
        //未转换字段: createUserId code gasCompanyId downKey latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        return result;
    }
    public IotDeviceEntity iotDevice_CurrentMessageIdModel2entity(IotDevice_CurrentMessageIdModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId code gasCompanyId downKey latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        return result;
    }
    public List<IotDeviceEntity> iotDevice_CurrentMessageIdModelList2entityList(List<IotDevice_CurrentMessageIdModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (IotDevice_CurrentMessageIdModel item : in) {
            result.add(iotDevice_CurrentMessageIdModel2entity(item));
        }
        return result;
    }
    public IotDevice_CurrentMessageIdModel entity2iotDevice_CurrentMessageIdModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevice_CurrentMessageIdModel result = new IotDevice_CurrentMessageIdModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        return result;
    }
    public List<IotDevice_CurrentMessageIdModel> entityList2iotDevice_CurrentMessageIdModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<IotDevice_CurrentMessageIdModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2iotDevice_CurrentMessageIdModel(item));
        }
        return result;
    }
    public IotDevice_CurrentMessageIdModel ext2iotDevice_CurrentMessageIdModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevice_CurrentMessageIdModel result = new IotDevice_CurrentMessageIdModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCurrentMessageId(HzhrTypeUtil.integer2integer(in.getCurrentMessageId()));
        return result;
    }
    public List<IotDevice_CurrentMessageIdModel> extList2iotDevice_CurrentMessageIdModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<IotDevice_CurrentMessageIdModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2iotDevice_CurrentMessageIdModel(item));
        }
        return result;
    }
    public IotDevice_CurrentMessageIdModel custom2iotDevice_CurrentMessageIdModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        IotDevice_CurrentMessageIdModel result = ext2iotDevice_CurrentMessageIdModel(in);

        return result;
    }
    public List<IotDevice_CurrentMessageIdModel> customList2iotDevice_CurrentMessageIdModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<IotDevice_CurrentMessageIdModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2iotDevice_CurrentMessageIdModel(item));
        }
        return result;
    }
    public IotDevice_CurrentMessageIdGetModel customList2iotDevice_CurrentMessageIdGetModel(List<IotDeviceEntityCustom> customList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDevice_CurrentMessageIdModel> modelList = customList2iotDevice_CurrentMessageIdModelList(customList);
        if (modelList == null) {
            IotDevice_CurrentMessageIdGetModel result = new IotDevice_CurrentMessageIdGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = query.get("_show") != null ? query.get("_show").toString() : "one";


        IotDevice_CurrentMessageIdGetModel result = new IotDevice_CurrentMessageIdGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public IotDevice_CurrentMessageIdGetModel extList2iotDevice_CurrentMessageIdGetModel(List<IotDeviceEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDevice_CurrentMessageIdModel> modelList = extList2iotDevice_CurrentMessageIdModelList(extList);
        if (modelList == null) {
            IotDevice_CurrentMessageIdGetModel result = new IotDevice_CurrentMessageIdGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));


        IotDevice_CurrentMessageIdGetModel result = new IotDevice_CurrentMessageIdGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public IotDevice_CurrentMessageIdGetModel entity2iotDevice_CurrentMessageIdGetModel(IotDeviceEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDeviceEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2iotDevice_CurrentMessageIdGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, IotDeviceEntityExt.class));
        return extList2iotDevice_CurrentMessageIdGetModel(extList, total, changeCount, query);
     }
    public IotDeviceEntity iotDevice_KeyModel2entity(IotDevice_KeyModel in) {
        //未转换字段: createUserId code gasCompanyId currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        return result;
    }
    public IotDeviceEntity iotDevice_KeyModel2entity(IotDevice_KeyModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId code gasCompanyId currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        return result;
    }
    public List<IotDeviceEntity> iotDevice_KeyModelList2entityList(List<IotDevice_KeyModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (IotDevice_KeyModel item : in) {
            result.add(iotDevice_KeyModel2entity(item));
        }
        return result;
    }
    public IotDevice_KeyModel entity2iotDevice_KeyModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevice_KeyModel result = new IotDevice_KeyModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        return result;
    }
    public List<IotDevice_KeyModel> entityList2iotDevice_KeyModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<IotDevice_KeyModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2iotDevice_KeyModel(item));
        }
        return result;
    }
    public IotDevice_KeyModel ext2iotDevice_KeyModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevice_KeyModel result = new IotDevice_KeyModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        return result;
    }
    public List<IotDevice_KeyModel> extList2iotDevice_KeyModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<IotDevice_KeyModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2iotDevice_KeyModel(item));
        }
        return result;
    }
    public IotDevice_KeyModel custom2iotDevice_KeyModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        IotDevice_KeyModel result = ext2iotDevice_KeyModel(in);

        return result;
    }
    public List<IotDevice_KeyModel> customList2iotDevice_KeyModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<IotDevice_KeyModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2iotDevice_KeyModel(item));
        }
        return result;
    }
    public IotDevice_KeyGetModel customList2iotDevice_KeyGetModel(List<IotDeviceEntityCustom> customList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDevice_KeyModel> modelList = customList2iotDevice_KeyModelList(customList);
        if (modelList == null) {
            IotDevice_KeyGetModel result = new IotDevice_KeyGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = query.get("_show") != null ? query.get("_show").toString() : "one";


        IotDevice_KeyGetModel result = new IotDevice_KeyGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public IotDevice_KeyGetModel extList2iotDevice_KeyGetModel(List<IotDeviceEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDevice_KeyModel> modelList = extList2iotDevice_KeyModelList(extList);
        if (modelList == null) {
            IotDevice_KeyGetModel result = new IotDevice_KeyGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));


        IotDevice_KeyGetModel result = new IotDevice_KeyGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public IotDevice_KeyGetModel entity2iotDevice_KeyGetModel(IotDeviceEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDeviceEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2iotDevice_KeyGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, IotDeviceEntityExt.class));
        return extList2iotDevice_KeyGetModel(extList, total, changeCount, query);
     }
    public IotDeviceEntity iotDevice_RegistInfoModel2entity(IotDevice_RegistInfoModel in) {
        //未转换字段: createUserId gasCompanyId currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency saleUserId iotPlatformCode 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        return result;
    }
    public IotDeviceEntity iotDevice_RegistInfoModel2entity(IotDevice_RegistInfoModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId gasCompanyId currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency saleUserId iotPlatformCode 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        return result;
    }
    public List<IotDeviceEntity> iotDevice_RegistInfoModelList2entityList(List<IotDevice_RegistInfoModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (IotDevice_RegistInfoModel item : in) {
            result.add(iotDevice_RegistInfoModel2entity(item));
        }
        return result;
    }
    public IotDevice_RegistInfoModel entity2iotDevice_RegistInfoModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevice_RegistInfoModel result = new IotDevice_RegistInfoModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        return result;
    }
    public List<IotDevice_RegistInfoModel> entityList2iotDevice_RegistInfoModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<IotDevice_RegistInfoModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2iotDevice_RegistInfoModel(item));
        }
        return result;
    }
    public IotDevice_RegistInfoModel ext2iotDevice_RegistInfoModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevice_RegistInfoModel result = new IotDevice_RegistInfoModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        return result;
    }
    public List<IotDevice_RegistInfoModel> extList2iotDevice_RegistInfoModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<IotDevice_RegistInfoModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2iotDevice_RegistInfoModel(item));
        }
        return result;
    }
    public IotDevice_RegistInfoModel custom2iotDevice_RegistInfoModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        IotDevice_RegistInfoModel result = ext2iotDevice_RegistInfoModel(in);

        return result;
    }
    public List<IotDevice_RegistInfoModel> customList2iotDevice_RegistInfoModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<IotDevice_RegistInfoModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2iotDevice_RegistInfoModel(item));
        }
        return result;
    }
    public IotDevice_RegistInfoGetModel customList2iotDevice_RegistInfoGetModel(List<IotDeviceEntityCustom> customList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDevice_RegistInfoModel> modelList = customList2iotDevice_RegistInfoModelList(customList);
        if (modelList == null) {
            IotDevice_RegistInfoGetModel result = new IotDevice_RegistInfoGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = query.get("_show") != null ? query.get("_show").toString() : "one";


        IotDevice_RegistInfoGetModel result = new IotDevice_RegistInfoGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public IotDevice_RegistInfoGetModel extList2iotDevice_RegistInfoGetModel(List<IotDeviceEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDevice_RegistInfoModel> modelList = extList2iotDevice_RegistInfoModelList(extList);
        if (modelList == null) {
            IotDevice_RegistInfoGetModel result = new IotDevice_RegistInfoGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));


        IotDevice_RegistInfoGetModel result = new IotDevice_RegistInfoGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public IotDevice_RegistInfoGetModel entity2iotDevice_RegistInfoGetModel(IotDeviceEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDeviceEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2iotDevice_RegistInfoGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, IotDeviceEntityExt.class));
        return extList2iotDevice_RegistInfoGetModel(extList, total, changeCount, query);
     }
    public IotDeviceEntity iotDevice_RegistInfoPutModel2entity(IotDevice_RegistInfoPutModel in) {
        //未转换字段: createUserId gasCompanyId currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId id state iotPlatformImei bindStatus longitude alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency saleUserId iotPlatformCode 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        return result;
    }
    public IotDeviceEntity iotDevice_RegistInfoPutModel2entity(IotDevice_RegistInfoPutModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId gasCompanyId currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId id state iotPlatformImei bindStatus longitude alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency saleUserId iotPlatformCode 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        return result;
    }
    public List<IotDeviceEntity> iotDevice_RegistInfoPutModelList2entityList(List<IotDevice_RegistInfoPutModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (IotDevice_RegistInfoPutModel item : in) {
            result.add(iotDevice_RegistInfoPutModel2entity(item));
        }
        return result;
    }
    public IotDevice_RegistInfoPutModel entity2iotDevice_RegistInfoPutModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevice_RegistInfoPutModel result = new IotDevice_RegistInfoPutModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        return result;
    }
    public List<IotDevice_RegistInfoPutModel> entityList2iotDevice_RegistInfoPutModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<IotDevice_RegistInfoPutModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2iotDevice_RegistInfoPutModel(item));
        }
        return result;
    }
    public IotDevice_RegistInfoPutModel ext2iotDevice_RegistInfoPutModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        IotDevice_RegistInfoPutModel result = new IotDevice_RegistInfoPutModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        result.setSimNo(HzhrTypeUtil.string2string(in.getSimNo()));
        result.setSimTypeCode(HzhrTypeUtil.string2string(in.getSimTypeCode()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setUpKey(HzhrTypeUtil.string2string(in.getUpKey()));
        result.setDownKey(HzhrTypeUtil.string2string(in.getDownKey()));
        return result;
    }
    public List<IotDevice_RegistInfoPutModel> extList2iotDevice_RegistInfoPutModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<IotDevice_RegistInfoPutModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2iotDevice_RegistInfoPutModel(item));
        }
        return result;
    }
    public IotDevice_RegistInfoPutModel custom2iotDevice_RegistInfoPutModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        IotDevice_RegistInfoPutModel result = ext2iotDevice_RegistInfoPutModel(in);

        return result;
    }
    public List<IotDevice_RegistInfoPutModel> customList2iotDevice_RegistInfoPutModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<IotDevice_RegistInfoPutModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2iotDevice_RegistInfoPutModel(item));
        }
        return result;
    }
    public IotDeviceEntity pressureMonitor1Model2entity(PressureMonitor1Model in) {
        //未转换字段: createUserId gasCompanyId downKey currentMessageId latitude remark deviceTime collectDeviceId reportPeriod saleTime exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getDeviceNo()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setInstallTime(HzhrTypeUtil.long2date(in.getInstallTime()));
        return result;
    }
    public IotDeviceEntity pressureMonitor1Model2entity(PressureMonitor1Model in, IotDeviceEntity ori) {
        //未转换字段: createUserId gasCompanyId downKey currentMessageId latitude remark deviceTime collectDeviceId reportPeriod saleTime exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getDeviceNo()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setInstallTime(HzhrTypeUtil.long2date(in.getInstallTime()));
        return result;
    }
    public List<IotDeviceEntity> pressureMonitor1ModelList2entityList(List<PressureMonitor1Model> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (PressureMonitor1Model item : in) {
            result.add(pressureMonitor1Model2entity(item));
        }
        return result;
    }
    public PressureMonitor1Model entity2pressureMonitor1Model(IotDeviceEntity in) {
        //未转换字段: sectionName managementName coordinate deptId userName installAddress 
        if (in == null) return null;
        PressureMonitor1Model result = new PressureMonitor1Model();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setDeviceNo(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setInstallTime(HzhrTypeUtil.date2long(in.getInstallTime()));
        return result;
    }
    public List<PressureMonitor1Model> entityList2pressureMonitor1ModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<PressureMonitor1Model> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2pressureMonitor1Model(item));
        }
        return result;
    }
    public PressureMonitor1Model ext2pressureMonitor1Model(IotDeviceEntityExt in) {
        //未转换字段: sectionName managementName coordinate deptId userName installAddress 
        if (in == null) return null;
        PressureMonitor1Model result = new PressureMonitor1Model();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setDeviceNo(HzhrTypeUtil.string2string(in.getCode()));
        result.setDes(HzhrTypeUtil.string2string(in.getDes()));
        result.setInstallTime(HzhrTypeUtil.date2long(in.getInstallTime()));
        return result;
    }
    public List<PressureMonitor1Model> extList2pressureMonitor1ModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<PressureMonitor1Model> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2pressureMonitor1Model(item));
        }
        return result;
    }
    public PressureMonitor1Model custom2pressureMonitor1Model(IotDeviceEntityCustom in) {
        if (in == null) return null;
        PressureMonitor1Model result = ext2pressureMonitor1Model(in);

        return result;
    }
    public List<PressureMonitor1Model> customList2pressureMonitor1ModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<PressureMonitor1Model> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2pressureMonitor1Model(item));
        }
        return result;
    }
    public PressureMonitor1GetModel customList2pressureMonitor1GetModel(List<IotDeviceEntityCustom> customList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<PressureMonitor1Model> modelList = customList2pressureMonitor1ModelList(customList);
        if (modelList == null) {
            PressureMonitor1GetModel result = new PressureMonitor1GetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = query.get("_show") != null ? query.get("_show").toString() : "one";
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;
         Boolean _show_dept = query.get("_show_dept") != null ? Boolean.parseBoolean(query.get("_show_dept").toString()) : false;

        if (!_show_info) {
            for (PressureMonitor1Model model : modelList) {
                model.setDeviceNo(null);
                model.setInstallAddress(null);
                model.setUserName(null);
                model.setDes(null);
                model.setInstallTime(null);
                model.setDeptId(null);
                model.setCoordinate(null);
            }
        }
        if (!_show_dept) {
            for (PressureMonitor1Model model : modelList) {
                model.setManagementName(null);
                model.setSectionName(null);
            }
        }

        PressureMonitor1GetModel result = new PressureMonitor1GetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public PressureMonitor1GetModel extList2pressureMonitor1GetModel(List<IotDeviceEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<PressureMonitor1Model> modelList = extList2pressureMonitor1ModelList(extList);
        if (modelList == null) {
            PressureMonitor1GetModel result = new PressureMonitor1GetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;
         Boolean _show_dept = query.get("_show_dept") != null ? Boolean.parseBoolean(query.get("_show_dept").toString()) : false;

        if (!_show_info) {
            for (PressureMonitor1Model model : modelList) {
                model.setDeviceNo(null);
                model.setInstallAddress(null);
                model.setUserName(null);
                model.setDes(null);
                model.setInstallTime(null);
                model.setDeptId(null);
                model.setCoordinate(null);
            }
        }
        if (!_show_dept) {
            for (PressureMonitor1Model model : modelList) {
                model.setManagementName(null);
                model.setSectionName(null);
            }
        }

        PressureMonitor1GetModel result = new PressureMonitor1GetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public PressureMonitor1GetModel entity2pressureMonitor1GetModel(IotDeviceEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDeviceEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2pressureMonitor1GetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, IotDeviceEntityExt.class));
        return extList2pressureMonitor1GetModel(extList, total, changeCount, query);
     }
    public IotDeviceEntity pressureMonitor_CodeModel2entity(PressureMonitor_CodeModel in) {
        //未转换字段: createUserId gasCompanyId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        return result;
    }
    public IotDeviceEntity pressureMonitor_CodeModel2entity(PressureMonitor_CodeModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId gasCompanyId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        return result;
    }
    public List<IotDeviceEntity> pressureMonitor_CodeModelList2entityList(List<PressureMonitor_CodeModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (PressureMonitor_CodeModel item : in) {
            result.add(pressureMonitor_CodeModel2entity(item));
        }
        return result;
    }
    public PressureMonitor_CodeModel entity2pressureMonitor_CodeModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        PressureMonitor_CodeModel result = new PressureMonitor_CodeModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        return result;
    }
    public List<PressureMonitor_CodeModel> entityList2pressureMonitor_CodeModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<PressureMonitor_CodeModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2pressureMonitor_CodeModel(item));
        }
        return result;
    }
    public PressureMonitor_CodeModel ext2pressureMonitor_CodeModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        PressureMonitor_CodeModel result = new PressureMonitor_CodeModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        return result;
    }
    public List<PressureMonitor_CodeModel> extList2pressureMonitor_CodeModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<PressureMonitor_CodeModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2pressureMonitor_CodeModel(item));
        }
        return result;
    }
    public PressureMonitor_CodeModel custom2pressureMonitor_CodeModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        PressureMonitor_CodeModel result = ext2pressureMonitor_CodeModel(in);

        return result;
    }
    public List<PressureMonitor_CodeModel> customList2pressureMonitor_CodeModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<PressureMonitor_CodeModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2pressureMonitor_CodeModel(item));
        }
        return result;
    }
    public PressureMonitor_CodeGetModel customList2pressureMonitor_CodeGetModel(List<IotDeviceEntityCustom> customList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<PressureMonitor_CodeModel> modelList = customList2pressureMonitor_CodeModelList(customList);
        if (modelList == null) {
            PressureMonitor_CodeGetModel result = new PressureMonitor_CodeGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = query.get("_show") != null ? query.get("_show").toString() : "one";
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;

        if (!_show_info) {
            for (PressureMonitor_CodeModel model : modelList) {
                model.setCode(null);
            }
        }

        PressureMonitor_CodeGetModel result = new PressureMonitor_CodeGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public PressureMonitor_CodeGetModel extList2pressureMonitor_CodeGetModel(List<IotDeviceEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<PressureMonitor_CodeModel> modelList = extList2pressureMonitor_CodeModelList(extList);
        if (modelList == null) {
            PressureMonitor_CodeGetModel result = new PressureMonitor_CodeGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;

        if (!_show_info) {
            for (PressureMonitor_CodeModel model : modelList) {
                model.setCode(null);
            }
        }

        PressureMonitor_CodeGetModel result = new PressureMonitor_CodeGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public PressureMonitor_CodeGetModel entity2pressureMonitor_CodeGetModel(IotDeviceEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDeviceEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2pressureMonitor_CodeGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, IotDeviceEntityExt.class));
        return extList2pressureMonitor_CodeGetModel(extList, total, changeCount, query);
     }
    public IotDeviceEntity pressureMonitor_CodePutModel2entity(PressureMonitor_CodePutModel in) {
        //未转换字段: createUserId gasCompanyId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId id state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        return result;
    }
    public IotDeviceEntity pressureMonitor_CodePutModel2entity(PressureMonitor_CodePutModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId gasCompanyId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId reportPeriod saleTime des exceptionReportPeriod iotPlatformIp resourceCode iotPlatformPort exceptionCollectFrequency heartPeriod exceptionReportFrequency outId id state iotPlatformImei bindStatus longitude upKey alarmMax address collectFrequency freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId alarmMin createTime iotPlatformDeviceId typeId reportFrequency simNo saleUserId simTypeCode iotPlatformCode reportTime 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        return result;
    }
    public List<IotDeviceEntity> pressureMonitor_CodePutModelList2entityList(List<PressureMonitor_CodePutModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (PressureMonitor_CodePutModel item : in) {
            result.add(pressureMonitor_CodePutModel2entity(item));
        }
        return result;
    }
    public PressureMonitor_CodePutModel entity2pressureMonitor_CodePutModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        PressureMonitor_CodePutModel result = new PressureMonitor_CodePutModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        return result;
    }
    public List<PressureMonitor_CodePutModel> entityList2pressureMonitor_CodePutModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<PressureMonitor_CodePutModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2pressureMonitor_CodePutModel(item));
        }
        return result;
    }
    public PressureMonitor_CodePutModel ext2pressureMonitor_CodePutModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        PressureMonitor_CodePutModel result = new PressureMonitor_CodePutModel();

        result.setCode(HzhrTypeUtil.string2string(in.getCode()));
        return result;
    }
    public List<PressureMonitor_CodePutModel> extList2pressureMonitor_CodePutModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<PressureMonitor_CodePutModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2pressureMonitor_CodePutModel(item));
        }
        return result;
    }
    public PressureMonitor_CodePutModel custom2pressureMonitor_CodePutModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        PressureMonitor_CodePutModel result = ext2pressureMonitor_CodePutModel(in);

        return result;
    }
    public List<PressureMonitor_CodePutModel> customList2pressureMonitor_CodePutModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<PressureMonitor_CodePutModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2pressureMonitor_CodePutModel(item));
        }
        return result;
    }
    public IotDeviceEntity pressureMonitor_DeviceParamModel2entity(PressureMonitor_DeviceParamModel in) {
        //未转换字段: createUserId code gasCompanyId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId saleTime des resourceCode heartPeriod outId state iotPlatformImei bindStatus longitude upKey address freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId createTime iotPlatformDeviceId typeId simNo saleUserId simTypeCode iotPlatformCode 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        return result;
    }
    public IotDeviceEntity pressureMonitor_DeviceParamModel2entity(PressureMonitor_DeviceParamModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId code gasCompanyId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId saleTime des resourceCode heartPeriod outId state iotPlatformImei bindStatus longitude upKey address freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId createTime iotPlatformDeviceId typeId simNo saleUserId simTypeCode iotPlatformCode 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        return result;
    }
    public List<IotDeviceEntity> pressureMonitor_DeviceParamModelList2entityList(List<PressureMonitor_DeviceParamModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (PressureMonitor_DeviceParamModel item : in) {
            result.add(pressureMonitor_DeviceParamModel2entity(item));
        }
        return result;
    }
    public PressureMonitor_DeviceParamModel entity2pressureMonitor_DeviceParamModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        PressureMonitor_DeviceParamModel result = new PressureMonitor_DeviceParamModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        return result;
    }
    public List<PressureMonitor_DeviceParamModel> entityList2pressureMonitor_DeviceParamModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<PressureMonitor_DeviceParamModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2pressureMonitor_DeviceParamModel(item));
        }
        return result;
    }
    public PressureMonitor_DeviceParamModel ext2pressureMonitor_DeviceParamModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        PressureMonitor_DeviceParamModel result = new PressureMonitor_DeviceParamModel();

        result.setId(HzhrTypeUtil.integer2integer(in.getId()));
        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        return result;
    }
    public List<PressureMonitor_DeviceParamModel> extList2pressureMonitor_DeviceParamModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<PressureMonitor_DeviceParamModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2pressureMonitor_DeviceParamModel(item));
        }
        return result;
    }
    public PressureMonitor_DeviceParamModel custom2pressureMonitor_DeviceParamModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        PressureMonitor_DeviceParamModel result = ext2pressureMonitor_DeviceParamModel(in);

        return result;
    }
    public List<PressureMonitor_DeviceParamModel> customList2pressureMonitor_DeviceParamModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<PressureMonitor_DeviceParamModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2pressureMonitor_DeviceParamModel(item));
        }
        return result;
    }
    public PressureMonitor_DeviceParamGetModel customList2pressureMonitor_DeviceParamGetModel(List<IotDeviceEntityCustom> customList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<PressureMonitor_DeviceParamModel> modelList = customList2pressureMonitor_DeviceParamModelList(customList);
        if (modelList == null) {
            PressureMonitor_DeviceParamGetModel result = new PressureMonitor_DeviceParamGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = query.get("_show") != null ? query.get("_show").toString() : "one";
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;

        if (!_show_info) {
            for (PressureMonitor_DeviceParamModel model : modelList) {
                model.setIotPlatformIp(null);
                model.setIotPlatformPort(null);
                model.setAlarmMax(null);
                model.setAlarmMin(null);
                model.setReportTime(null);
                model.setReportPeriod(null);
                model.setExceptionReportPeriod(null);
                model.setReportFrequency(null);
                model.setExceptionReportFrequency(null);
                model.setCollectFrequency(null);
                model.setExceptionCollectFrequency(null);
            }
        }

        PressureMonitor_DeviceParamGetModel result = new PressureMonitor_DeviceParamGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public PressureMonitor_DeviceParamGetModel extList2pressureMonitor_DeviceParamGetModel(List<IotDeviceEntityExt> extList, Integer total, Integer changeCount, Map<String, Object> query) {
        List<PressureMonitor_DeviceParamModel> modelList = extList2pressureMonitor_DeviceParamModelList(extList);
        if (modelList == null) {
            PressureMonitor_DeviceParamGetModel result = new PressureMonitor_DeviceParamGetModel();
            result.setTotal(total);
            result.setChangeCount(changeCount);
            return result;
        }

         String _show = HzhrTypeUtil.object2string(query.get("_show"));
         Boolean _show_info = query.get("_show_info") != null ? Boolean.parseBoolean(query.get("_show_info").toString()) : false;

        if (!_show_info) {
            for (PressureMonitor_DeviceParamModel model : modelList) {
                model.setIotPlatformIp(null);
                model.setIotPlatformPort(null);
                model.setAlarmMax(null);
                model.setAlarmMin(null);
                model.setReportTime(null);
                model.setReportPeriod(null);
                model.setExceptionReportPeriod(null);
                model.setReportFrequency(null);
                model.setExceptionReportFrequency(null);
                model.setCollectFrequency(null);
                model.setExceptionCollectFrequency(null);
            }
        }

        PressureMonitor_DeviceParamGetModel result = new PressureMonitor_DeviceParamGetModel();
        if ("one".equals(_show)) {
            if (modelList.size() > 0) {
                result.setModel(modelList.get(0));
            }
         }
        if ("list".equals(_show)) {
            result.setModelList(modelList);
        }
        result.setTotal(total);
        result.setChangeCount(changeCount);
        return result;
    }
    public PressureMonitor_DeviceParamGetModel entity2pressureMonitor_DeviceParamGetModel(IotDeviceEntity entity, Integer total, Integer changeCount, Map<String, Object> query) {
        List<IotDeviceEntityExt> extList = new ArrayList<>();
        if (entity == null) return extList2pressureMonitor_DeviceParamGetModel(extList, total, changeCount, query);
        extList.add(HzhrJsonUtil.convertObjectType(entity, IotDeviceEntityExt.class));
        return extList2pressureMonitor_DeviceParamGetModel(extList, total, changeCount, query);
     }
    public IotDeviceEntity pressureMonitor_DeviceParamPutModel2entity(PressureMonitor_DeviceParamPutModel in) {
        //未转换字段: createUserId code gasCompanyId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId saleTime des resourceCode heartPeriod outId id state iotPlatformImei bindStatus longitude upKey address freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId createTime iotPlatformDeviceId typeId simNo saleUserId simTypeCode iotPlatformCode 
        if (in == null) return null;
        IotDeviceEntity result = new IotDeviceEntity();

        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        return result;
    }
    public IotDeviceEntity pressureMonitor_DeviceParamPutModel2entity(PressureMonitor_DeviceParamPutModel in, IotDeviceEntity ori) {
        //未转换字段: createUserId code gasCompanyId downKey currentMessageId latitude remark installTime deviceTime collectDeviceId saleTime des resourceCode heartPeriod outId id state iotPlatformImei bindStatus longitude upKey address freezingDay updateUserId isValid deptId updateTime categoryCode companyId protocolId createTime iotPlatformDeviceId typeId simNo saleUserId simTypeCode iotPlatformCode 
        if (in == null) return null;
        IotDeviceEntity result = ori;

        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        return result;
    }
    public List<IotDeviceEntity> pressureMonitor_DeviceParamPutModelList2entityList(List<PressureMonitor_DeviceParamPutModel> in) {
        if (in == null) return null;
        List<IotDeviceEntity> result = new ArrayList<>();
        for (PressureMonitor_DeviceParamPutModel item : in) {
            result.add(pressureMonitor_DeviceParamPutModel2entity(item));
        }
        return result;
    }
    public PressureMonitor_DeviceParamPutModel entity2pressureMonitor_DeviceParamPutModel(IotDeviceEntity in) {
        //未转换字段: 
        if (in == null) return null;
        PressureMonitor_DeviceParamPutModel result = new PressureMonitor_DeviceParamPutModel();

        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        return result;
    }
    public List<PressureMonitor_DeviceParamPutModel> entityList2pressureMonitor_DeviceParamPutModelList(List<IotDeviceEntity> in) {
        if (in == null) return null;
        List<PressureMonitor_DeviceParamPutModel> result = new ArrayList<>();
        for (IotDeviceEntity item : in) {
            result.add(entity2pressureMonitor_DeviceParamPutModel(item));
        }
        return result;
    }
    public PressureMonitor_DeviceParamPutModel ext2pressureMonitor_DeviceParamPutModel(IotDeviceEntityExt in) {
        //未转换字段: 
        if (in == null) return null;
        PressureMonitor_DeviceParamPutModel result = new PressureMonitor_DeviceParamPutModel();

        result.setIotPlatformIp(HzhrTypeUtil.string2string(in.getIotPlatformIp()));
        result.setIotPlatformPort(HzhrTypeUtil.string2string(in.getIotPlatformPort()));
        result.setReportTime(HzhrTypeUtil.string2string(in.getReportTime()));
        result.setReportPeriod(HzhrTypeUtil.string2string(in.getReportPeriod()));
        result.setExceptionReportPeriod(HzhrTypeUtil.string2string(in.getExceptionReportPeriod()));
        result.setReportFrequency(HzhrTypeUtil.float2float(in.getReportFrequency()));
        result.setExceptionReportFrequency(HzhrTypeUtil.float2float(in.getExceptionReportFrequency()));
        result.setCollectFrequency(HzhrTypeUtil.float2float(in.getCollectFrequency()));
        result.setExceptionCollectFrequency(HzhrTypeUtil.float2float(in.getExceptionCollectFrequency()));
        result.setAlarmMax(HzhrTypeUtil.double2double(in.getAlarmMax()));
        result.setAlarmMin(HzhrTypeUtil.double2double(in.getAlarmMin()));
        return result;
    }
    public List<PressureMonitor_DeviceParamPutModel> extList2pressureMonitor_DeviceParamPutModelList(List<IotDeviceEntityExt> in) {
        if (in == null) return null;
        List<PressureMonitor_DeviceParamPutModel> result = new ArrayList<>();
        for (IotDeviceEntityExt item : in) {
            result.add(ext2pressureMonitor_DeviceParamPutModel(item));
        }
        return result;
    }
    public PressureMonitor_DeviceParamPutModel custom2pressureMonitor_DeviceParamPutModel(IotDeviceEntityCustom in) {
        if (in == null) return null;
        PressureMonitor_DeviceParamPutModel result = ext2pressureMonitor_DeviceParamPutModel(in);

        return result;
    }
    public List<PressureMonitor_DeviceParamPutModel> customList2pressureMonitor_DeviceParamPutModelList(List<IotDeviceEntityCustom> in) {
        if (in == null) return null;
        List<PressureMonitor_DeviceParamPutModel> result = new ArrayList<>();
        for (IotDeviceEntityCustom item : in) {
            result.add(custom2pressureMonitor_DeviceParamPutModel(item));
        }
        return result;
    }
    public IotDeviceCustomQueryModel concentratorService_query2queryModel(Map<String, Object> query) {
        IotDeviceCustomQueryModel queryModel = new IotDeviceCustomQueryModel();

        Integer _equal_id = HzhrTypeUtil.object2integer(query.get("_equal_id"));
        if (_equal_id != null) {
            queryModel.setEqual_id(_equal_id);
         }

        String _equal_code = HzhrTypeUtil.object2string(query.get("_equal_code"));
        if (_equal_code != null) {
            queryModel.setEqual_code(_equal_code);
         }

        String _like_des = HzhrTypeUtil.object2string(query.get("_like_des"));
        if (_like_des != null) {
            queryModel.setLike_des(_like_des);
         }

        Date _greaterthanorequal_createTime = HzhrTypeUtil.object2date(query.get("_greaterthanorequal_createTime"));
        if (_greaterthanorequal_createTime != null) {
            queryModel.setGreaterthanorequal_createTime(_greaterthanorequal_createTime);
         }

        Date _lessthan_createTime = HzhrTypeUtil.object2date(query.get("_lessthan_createTime"));
        if (_lessthan_createTime != null) {
            queryModel.setLessthan_createTime(_lessthan_createTime);
         }

        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public IotDeviceCustomQueryModel iotDeviceService_query2queryModel(Map<String, Object> query) {
        IotDeviceCustomQueryModel queryModel = new IotDeviceCustomQueryModel();

        Integer _equal_id = HzhrTypeUtil.object2integer(query.get("_equal_id"));
        if (_equal_id != null) {
            queryModel.setEqual_id(_equal_id);
         }

        String _equal_code = HzhrTypeUtil.object2string(query.get("_equal_code"));
        if (_equal_code != null) {
            queryModel.setEqual_code(_equal_code);
         }

        String _equal_categoryCode = HzhrTypeUtil.object2string(query.get("_equal_categoryCode"));
        if (_equal_categoryCode != null) {
            queryModel.setEqual_categoryCode(_equal_categoryCode);
         }

        String _equal_iotPlatformImei = HzhrTypeUtil.object2string(query.get("_equal_iotPlatformImei"));
        if (_equal_iotPlatformImei != null) {
            queryModel.setEqual_iotPlatformImei(_equal_iotPlatformImei);
         }

        String _equal_iotPlatformDeviceId = HzhrTypeUtil.object2string(query.get("_equal_iotPlatformDeviceId"));
        if (_equal_iotPlatformDeviceId != null) {
            queryModel.setEqual_iotPlatformDeviceId(_equal_iotPlatformDeviceId);
         }

        String _like_code = HzhrTypeUtil.object2string(query.get("_like_code"));
        if (_like_code != null) {
            queryModel.setLike_code(_like_code);
         }

        String _like_resourceCode = HzhrTypeUtil.object2string(query.get("_like_resourceCode"));
        if (_like_resourceCode != null) {
            queryModel.setLike_resourceCode(_like_resourceCode);
         }

        Boolean _isnull_gasCompanyId = HzhrTypeUtil.object2boolean(query.get("_isnull_gasCompanyId"));
        if (_isnull_gasCompanyId != null) {
            queryModel.setIsnull_gasCompanyId(_isnull_gasCompanyId);
         }

        Date _greaterthanorequal_createTime = HzhrTypeUtil.object2date(query.get("_greaterthanorequal_createTime"));
        if (_greaterthanorequal_createTime != null) {
            queryModel.setGreaterthanorequal_createTime(_greaterthanorequal_createTime);
         }

        Date _lessthan_createTime = HzhrTypeUtil.object2date(query.get("_lessthan_createTime"));
        if (_lessthan_createTime != null) {
            queryModel.setLessthan_createTime(_lessthan_createTime);
         }

        Boolean _show_outId = HzhrTypeUtil.object2boolean(query.get("_show_outId"));
        if (_show_outId != null && _show_outId) {
            queryModel.setShow(true);
        }
        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_typeExt(true);
            queryModel.setShow7(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_simTypeExt(true);
            queryModel.setShow8(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_bindStatusExt(true);
            queryModel.setShow15(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_reportPeriodExt(true);
            queryModel.setShow16(true);
            queryModel.setShow(true);
            queryModel.setExt_exceptionReportPeriodExt(true);
            queryModel.setShow17(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
        }
        Boolean _show_gasCompany = HzhrTypeUtil.object2boolean(query.get("_show_gasCompany"));
        if (_show_gasCompany != null && _show_gasCompany) {
            queryModel.setShow(true);
        }
        Boolean _show_company = HzhrTypeUtil.object2boolean(query.get("_show_company"));
        if (_show_company != null && _show_company) {
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public IotDeviceCustomQueryModel iotDevice_CurrentMessageIdService_query2queryModel(Map<String, Object> query) {
        IotDeviceCustomQueryModel queryModel = new IotDeviceCustomQueryModel();

        Boolean _show_outId = HzhrTypeUtil.object2boolean(query.get("_show_outId"));
        if (_show_outId != null && _show_outId) {
            queryModel.setShow(true);
        }
        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_typeExt(true);
            queryModel.setShow7(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_simTypeExt(true);
            queryModel.setShow8(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_bindStatusExt(true);
            queryModel.setShow15(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_reportPeriodExt(true);
            queryModel.setShow16(true);
            queryModel.setShow(true);
            queryModel.setExt_exceptionReportPeriodExt(true);
            queryModel.setShow17(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
        }
        Boolean _show_gasCompany = HzhrTypeUtil.object2boolean(query.get("_show_gasCompany"));
        if (_show_gasCompany != null && _show_gasCompany) {
            queryModel.setShow(true);
        }
        Boolean _show_company = HzhrTypeUtil.object2boolean(query.get("_show_company"));
        if (_show_company != null && _show_company) {
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public IotDeviceCustomQueryModel iotDevice_KeyService_query2queryModel(Map<String, Object> query) {
        IotDeviceCustomQueryModel queryModel = new IotDeviceCustomQueryModel();

        Boolean _show_outId = HzhrTypeUtil.object2boolean(query.get("_show_outId"));
        if (_show_outId != null && _show_outId) {
            queryModel.setShow(true);
        }
        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_typeExt(true);
            queryModel.setShow7(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_simTypeExt(true);
            queryModel.setShow8(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_bindStatusExt(true);
            queryModel.setShow15(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_reportPeriodExt(true);
            queryModel.setShow16(true);
            queryModel.setShow(true);
            queryModel.setExt_exceptionReportPeriodExt(true);
            queryModel.setShow17(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
        }
        Boolean _show_gasCompany = HzhrTypeUtil.object2boolean(query.get("_show_gasCompany"));
        if (_show_gasCompany != null && _show_gasCompany) {
            queryModel.setShow(true);
        }
        Boolean _show_company = HzhrTypeUtil.object2boolean(query.get("_show_company"));
        if (_show_company != null && _show_company) {
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public IotDeviceCustomQueryModel iotDevice_RegistInfoService_query2queryModel(Map<String, Object> query) {
        IotDeviceCustomQueryModel queryModel = new IotDeviceCustomQueryModel();

        Integer _equal_id = HzhrTypeUtil.object2integer(query.get("_equal_id"));
        if (_equal_id != null) {
            queryModel.setEqual_id(_equal_id);
         }

        Boolean _show_outId = HzhrTypeUtil.object2boolean(query.get("_show_outId"));
        if (_show_outId != null && _show_outId) {
            queryModel.setShow(true);
        }
        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_typeExt(true);
            queryModel.setShow7(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_simTypeExt(true);
            queryModel.setShow8(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_bindStatusExt(true);
            queryModel.setShow15(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_reportPeriodExt(true);
            queryModel.setShow16(true);
            queryModel.setShow(true);
            queryModel.setExt_exceptionReportPeriodExt(true);
            queryModel.setShow17(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
        }
        Boolean _show_gasCompany = HzhrTypeUtil.object2boolean(query.get("_show_gasCompany"));
        if (_show_gasCompany != null && _show_gasCompany) {
            queryModel.setShow(true);
        }
        Boolean _show_company = HzhrTypeUtil.object2boolean(query.get("_show_company"));
        if (_show_company != null && _show_company) {
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public IotDeviceCustomQueryModel pressureMonitor1Service_query2queryModel(Map<String, Object> query) {
        IotDeviceCustomQueryModel queryModel = new IotDeviceCustomQueryModel();

        Integer _equal_id = HzhrTypeUtil.object2integer(query.get("_equal_id"));
        if (_equal_id != null) {
            queryModel.setEqual_id(_equal_id);
         }

        String _equal_deviceNo = HzhrTypeUtil.object2string(query.get("_equal_deviceNo"));
        if (_equal_deviceNo != null) {
            queryModel.setEqual_code(_equal_deviceNo);
         }

        Date _greaterthanorequal_installTime = HzhrTypeUtil.object2date(query.get("_greaterthanorequal_installTime"));
        if (_greaterthanorequal_installTime != null) {
            queryModel.setGreaterthanorequal_installTime(_greaterthanorequal_installTime);
         }

        Date _lessthan_installTime = HzhrTypeUtil.object2date(query.get("_lessthan_installTime"));
        if (_lessthan_installTime != null) {
            queryModel.setLessthan_installTime(_lessthan_installTime);
         }

        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setExt_collectDeviceExt(true);
            queryModel.setShow32(true);
            queryModel.setExt_collectDeviceExt(true);
            queryModel.setShow32(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_collectDeviceExt(true);
            queryModel.setShow32(true);
        }
        Boolean _show_dept = HzhrTypeUtil.object2boolean(query.get("_show_dept"));
        if (_show_dept != null && _show_dept) {
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public IotDeviceCustomQueryModel pressureMonitor_CodeService_query2queryModel(Map<String, Object> query) {
        IotDeviceCustomQueryModel queryModel = new IotDeviceCustomQueryModel();

        Integer _equal_id = HzhrTypeUtil.object2integer(query.get("_equal_id"));
        if (_equal_id != null) {
            queryModel.setEqual_id(_equal_id);
         }

        Boolean _show_outId = HzhrTypeUtil.object2boolean(query.get("_show_outId"));
        if (_show_outId != null && _show_outId) {
            queryModel.setShow(true);
        }
        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_typeExt(true);
            queryModel.setShow7(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_simTypeExt(true);
            queryModel.setShow8(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_bindStatusExt(true);
            queryModel.setShow15(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_reportPeriodExt(true);
            queryModel.setShow16(true);
            queryModel.setShow(true);
            queryModel.setExt_exceptionReportPeriodExt(true);
            queryModel.setShow17(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
        }
        Boolean _show_gasCompany = HzhrTypeUtil.object2boolean(query.get("_show_gasCompany"));
        if (_show_gasCompany != null && _show_gasCompany) {
            queryModel.setShow(true);
        }
        Boolean _show_company = HzhrTypeUtil.object2boolean(query.get("_show_company"));
        if (_show_company != null && _show_company) {
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }
    public IotDeviceCustomQueryModel pressureMonitor_DeviceParamService_query2queryModel(Map<String, Object> query) {
        IotDeviceCustomQueryModel queryModel = new IotDeviceCustomQueryModel();

        Integer _equal_id = HzhrTypeUtil.object2integer(query.get("_equal_id"));
        if (_equal_id != null) {
            queryModel.setEqual_id(_equal_id);
         }

        Boolean _show_outId = HzhrTypeUtil.object2boolean(query.get("_show_outId"));
        if (_show_outId != null && _show_outId) {
            queryModel.setShow(true);
        }
        Boolean _show_info = HzhrTypeUtil.object2boolean(query.get("_show_info"));
        if (_show_info != null && _show_info) {
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_typeExt(true);
            queryModel.setShow7(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_simTypeExt(true);
            queryModel.setShow8(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_bindStatusExt(true);
            queryModel.setShow15(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setExt_reportPeriodExt(true);
            queryModel.setShow16(true);
            queryModel.setShow(true);
            queryModel.setExt_exceptionReportPeriodExt(true);
            queryModel.setShow17(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
            queryModel.setShow(true);
        }
        Boolean _show_gasCompany = HzhrTypeUtil.object2boolean(query.get("_show_gasCompany"));
        if (_show_gasCompany != null && _show_gasCompany) {
            queryModel.setShow(true);
        }
        Boolean _show_company = HzhrTypeUtil.object2boolean(query.get("_show_company"));
        if (_show_company != null && _show_company) {
            queryModel.setShow(true);
        }

        Integer page = HzhrTypeUtil.object2integer(query.get("_page"));
        Integer count = HzhrTypeUtil.object2integer(query.get("_count"));
        queryModel.setPage(page, count);

        return queryModel;
    }

}

